package com.umeox.watch.moto.apiclient.model;

import android.os.Parcel;
import android.os.Parcelable;

public class AgentAppConfigDTO implements Parcelable {

    public String requestId;
    public int limit;
    public int used;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.requestId);
        dest.writeInt(this.limit);
        dest.writeInt(this.used);
    }

    public AgentAppConfigDTO() {

    }

    protected AgentAppConfigDTO(Parcel in) {
        this.requestId = in.readString();
        this.limit = in.readInt();
        this.used = in.readInt();
    }

    public static final Parcelable.Creator<AgentAppConfigDTO> CREATOR = new Parcelable.Creator<AgentAppConfigDTO>() {
        public AgentAppConfigDTO createFromParcel(Parcel source) {
            return new AgentAppConfigDTO(source);
        }

        public AgentAppConfigDTO[] newArray(int size) {
            return new AgentAppConfigDTO[size];
        }
    };

    @Override
    public String toString() {
        return "AgentAppConfigDTO{" +
                "requestId='" + requestId + '\'' +
                ", limit=" + limit +
                ", used=" + used +
                '}';
    }
}
